/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.zonasoft.dao;

import java.util.List;

/**
 *
 * @author william
 */
public abstract class AbstractGenericDAO<T> {
    protected Class<T> entityClass;
    
     public AbstractGenericDAO(Class<T> c) {
         this.entityClass = c;
    }

    public abstract boolean save(T t);

    public abstract T getById(Long id);

    public abstract List<T> get(String query);

    public abstract List<T> findAll();

    public abstract void executeQuery(String query);

    public abstract boolean remove(Long id);
}
